﻿using System;
using UnityEditor;
using UnityEngine;

namespace Runtime.Common.Editor
{
    public static class SerializedObjectEx
    {
        public static void ForEach(this SerializedObject serializedObject, Func<SerializedProperty, bool> match,
            bool enterChild = false)
        {
            return;
            try
            {
                if (serializedObject != null)
                {
                    SerializedProperty property = serializedObject.GetIterator();
                    property.ForEach(match, enterChild);
                }
            }
            catch (Exception e)
           {
                Debug.LogError($"{serializedObject}===={e}");
            }
     
        }
    }
}